/********************************************************************************
 *      Copyright:  (C) 2022 Zhang xiangyun<1327295677@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  socket.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(20/04/22)
 *         Author:  Zhang xiangyun <1327295677@qq.com>
 *      ChangeLog:  1, Release initial version on "20/04/22 16:08:35"
 *                 
 ********************************************************************************/
#ifndef	_CLIENT_H_
#define	_CLIENT_H_
/* description:this function used to connect socket for client */
/* retern value: connect fd  */
extern int client_socket_connect(char *server_ip,int server_port,int *socket_fd);

/* description:this function used to send data to socket server */
/* return value:write value */
//extern int client_socket_senddata(int connect_fd,float temp);
extern int socketconnected(int socket_fd);
extern int socket_senddata(int socket_fd,char *pack_buf,int size);
#endif   /* -----#ifndef _CLIENT_H_ ----- */



